package com.ossjk.qlh.system.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ossjk.core.base.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 数据字典
 * 
 * @Author Datou
 * @Version 1.0, 2020-04-23
 * @See
 * @Since com.ossjk.qlh.system.entity
 * @Description: TODO
 */
@ApiModel(value = "数据字典")
public class Dictionary extends BaseEntity<Dictionary> {

	private static final long serialVersionUID = 1L;

	/**
	 * 键
	 */
	@ApiModelProperty(value = "键", required = true)
	@TableField("dkey")
	private String dkey;
	/**
	 * 姓名
	 */
	@ApiModelProperty(value = "名称", required = true)
	@TableField("name")
	private String name;
	/**
	 * 值
	 */
	@ApiModelProperty(value = "值", required = true)
	@TableField("dvalue")
	private String dvalue;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@TableField("remarks")
	private String remarks;
	/**
	 * 类型 1-业务配置 2-系统配置
	 */
	@ApiModelProperty(value = "类型 1-业务配置 2-系统配置", required = true)
	@TableField("type")
	private Integer type;
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序", required = true)
	@TableField("sort")
	private Integer sort;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDkey() {
		return dkey;
	}

	public void setDkey(String dkey) {
		this.dkey = dkey;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDvalue() {
		return dvalue;
	}

	public void setDvalue(String dvalue) {
		this.dvalue = dvalue;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Date getCrtm() {
		return crtm;
	}

	public void setCrtm(Date crtm) {
		this.crtm = crtm;
	}

	public Date getMdtm() {
		return mdtm;
	}

	public void setMdtm(Date mdtm) {
		this.mdtm = mdtm;
	}

	public String getCrer() {
		return crer;
	}

	public void setCrer(String crer) {
		this.crer = crer;
	}

	public String getMder() {
		return mder;
	}

	public void setMder(String mder) {
		this.mder = mder;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Dictionary{" + ", id=" + id + ", dkey=" + dkey + ", name=" + name + ", dvalue=" + dvalue + ", remarks=" + remarks + ", crtm=" + crtm + ", mdtm=" + mdtm + ", crer=" + crer + ", mder=" + mder + ", type=" + type + ", sort=" + sort + "}";
	}
}
